home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- set xCenter to the locH of sprite 3
- set yCenter to the locV of sprite 3
- set radius to (the width of sprite 3 / 2) - 2
- puppetSprite(4, 1)
- repeat with n = 0 to 390
- if the mouseDown then
- exit repeat
- end if
- set dy to float(radius) * float(sin((360 - n) * PI / 180.0))
- set dx to float(radius) * float(cos(n * PI / 180.0))
- drawLine(4, yCenter, xCenter, yCenter + dy, xCenter + dx)
- put n & " Degrees" into field "Degree"
- updateStage()
- startTimer()
- repeat while the timer < 1
- if the mouseDown then
- exit repeat
- end if
- end repeat
- end repeat
- put "390 Degrees" into field "Degree"
- puppetSprite(4, 0)
- set the trails of sprite 4 to 0
- end
-